export const tableOption = {
  dialogFullscreen: true,
  dialogClickModal: false,
  dialogMenuPosition: 'center',
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  searchMenuSpan: 6,
  menuWidth: 180,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  copyBtn: false,
  viewBtn: true,
  align: 'center',
  tabs: true,
  // tabsActive: 2,
  group: [
    {
      icon: 'el-icon-info',
      label: '基本信息',
      prop: 'group1',
      column: [
        {
          label: '封面图',
          prop: 'coverPicture',
          component: "uploadForm",
          span: 5,
          rules: [{ required: true, message: '请上传封面图', trigger: "blur" }]
        },
        {
          label: '标题',
          prop: 'title',
          type: 'textarea',
          showWordLimit: true,
          maxlength: 64,
          span: 8,
          rules: [
            { required: true, message: '请输入标题', trigger: "blur" },
            { max: 64, message: "标题最大长度为64位", trigger: "blur" }
          ]
        },
        {
          label: '简介',
          prop: 'introduction',
          type: 'textarea',
          showWordLimit: true,
          maxlength: 255,
          span: 11,
          rules: [
            { max: 255, message: "简介最大长度为255位", trigger: "blur" }
          ]
        },
        {
          label: '作者',
          prop: 'author',
          span: 5,
        },
        {
          label: '分类',
          prop: 'classification',
          span: 8,
          type: 'select',
          dataType: 'string',
          multiple: true,
          dicUrl: '/api/manage/sysDict/item/type/article_type',
          rules: [{
            required: true,
            message: '请选择文章分类',
            trigger: 'blur'
          }],
        },
        {
          label: '标签',
          prop: 'label',
          span: 11,
        }]
    },
    {
      icon: 'el-icon-s-order',
      label: '文章内容',
      // collapse: false,
      prop: 'group2',
      column: [{
        label: '内容',
        prop: 'content',
        component: "avueUeditor",
        params: {
          height: 500
        },
        span: 24
      }]
    }
  ],
  column: [{
    label: 'id',
    prop: 'articleId',
    display: false,
    hide: true
  },
  {
    label: '封面图',
    prop: 'coverPicture',
    display: false,
    type: 'upload',
    listType: 'picture-img',
    // slot: true,
    width: 100,
  },
  {
    label: '标题',
    prop: 'title',
    display: false,
    overHidden: true,
  },
  {
    label: '简介',
    prop: 'introduction',
    display: false,
    overHidden: true,
  },
  {
    label: '作者',
    prop: 'author',
    display: false,
    overHidden: true,
    width: 120
  },
  {
    label: '分类',
    prop: 'classification',
    display: false,
    type: 'select',
    dataType: 'string',
    search: true,
    dicUrl: '/api/manage/sysDict/item/type/article_type',
    width: 200,
  },
  {
    label: '标签',
    prop: 'label',
    display: false,
    overHidden: true,
  },
  {
    width: 160,
    label: '创建时间',
    prop: 'createTime',
    type: 'datetime',
    format: 'yyyy-MM-dd HH:mm',
    valueFormat: 'timestamp',
    display: false,
  }, {
    width: 160,
    label: '更新时间',
    prop: 'updateTime',
    type: 'datetime',
    format: 'yyyy-MM-dd HH:mm',
    valueFormat: 'timestamp',
    display: false,
    hide: true
  }]
}
